
/*
========================================
RESET
========================================
*/

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

/* 🔥 BASE ESTABLE */
html,
body{
    width:100%;
    height:100%;
    overflow:hidden;
}

body{
    font-family:'Poppins',sans-serif;
    background:linear-gradient(
        135deg,
        #07152b,
        #0f2747,
        #12386b
    );
    color:#fff;
    position:relative;
}

/*
========================================
NAVBAR
========================================
*/

.navbar{

    position:fixed;
    top:0;
    left:0;
    width:100%;
    padding:18px 5%;
    display:flex;
    justify-content:flex-start;
    align-items:center;
    background:#07152b;
    border-bottom:1px solid rgba(255,255,255,.05);
    z-index:999;
}

/*
========================================
LOGO (CONTROL TOTAL)
========================================
*/

.logo{
    display:flex;
    align-items:center;
}

/* 🔥 FIX DEFINITIVO DEL LOGO */
.logo img{
    width:140px;
    max-width:160px;
    height:auto;
    object-fit:contain;
    display:block;
    transition:0.3s ease;
}

/* hover suave opcional */
.logo img:hover{
    transform:scale(1.05);
}

/*
========================================
LOGIN WRAPPER
========================================
*/

.login-wrapper{

    width:100%;
    min-height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;

    padding:120px 20px 40px;
}

/*
========================================
CARD LOGIN
========================================
*/

.card-login{

    width:100%;
    max-width:480px;
    background:rgba(255,255,255,.08);
    backdrop-filter:blur(25px);
    border:1px solid rgba(255,255,255,.12);
    border-radius:28px;
    padding:40px;
    box-shadow:0 20px 50px rgba(0,0,0,.30);
}

/*
========================================
TITULOS
========================================
*/

.card-login h1{
    text-align:center;
    font-size:32px;
    margin-bottom:10px;
}

.card-login h2{
    text-align:center;
    font-size:28px;
    margin-bottom:10px;
}

.card-login p{
    text-align:center;
    color:#cbd5e1;
    margin-bottom:30px;
}

/*
========================================
ERROR
========================================
*/

.error-message{
    background:rgba(239,68,68,.15);
    border:1px solid rgba(239,68,68,.25);
    color:white;
    padding:14px;
    border-radius:12px;
    margin-bottom:20px;
    text-align:center;
}

/*
========================================
FORMULARIOS
========================================
*/

.form-container{
    width:100%;
}

input,
select{

    width:100%;
    padding:15px;
    margin-bottom:15px;
    border:none;
    border-radius:14px;
    background:rgba(255,255,255,.10);
    color:white;
    font-size:14px;
    outline:none;
}

/* UX FOCUS */
input:focus,
select:focus{
    border:1px solid rgba(96,165,250,.6);
    box-shadow:0 0 10px rgba(96,165,250,.2);
}

input::placeholder{
    color:#cbd5e1;
}

select option{
    color:black;
}

/*
========================================
BOTONES
========================================
*/

input[type="submit"]{

    width:100%;
    padding:15px;
    border:none;
    border-radius:14px;
    background:#2563eb;
    color:white;
    font-size:15px;
    font-weight:600;
    cursor:pointer;
    transition:.3s;
}

input[type="submit"]:hover{
    background:#1d4ed8;
    transform:translateY(-2px);
}

.btn-secundario{

    width:100%;
    margin-top:12px;
    padding:15px;
    border:none;
    border-radius:14px;
    background:rgba(255,255,255,.10);
    color:white;
    cursor:pointer;
    transition:.3s;
}

.btn-secundario:hover{
    background:rgba(255,255,255,.18);
}

input[type="submit"]:active,
.btn-secundario:active{
    transform:scale(0.98);
}

/*
========================================
RESPONSIVE
========================================
*/

@media(max-width:768px){

    .navbar{
        padding:20px 5%;
    }

    .login-wrapper{
        padding-top:140px;
    }

    .card-login{
        width:95%;
        padding:30px 20px;
    }

    .card-login h1{
        font-size:26px;
    }
}